import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import PoetDetails from '../views/PoetDetails.vue'
import Poet from '@/views/Poet.vue'
const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/PoetDetails/:poetId',
    name: 'PoetDetails',
    component: PoetDetails
  },
  {
    path: '/Poet',
    name: 'Poet',
    component: Poet
  },

]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
